// import {dispatch} from 'redux'
import { GET_USER_INFO} from '../actionType'
import {getUser} from '@/api/user'
export const getUserInif =(data)=>{
   return async dispatch=>{
        const res = await getUser()
        // console.log(res.data)
        dispatch({
            type: GET_USER_INFO,
            payload:res.data
        })
   }
}